#include "CustomThread.h"

#include <QDebug>

CustomThread::CustomThread(QObject * parent)
{
    Q_UNUSED(parent);
    stoped = false;
}

void CustomThread::run()
{
    qreal i = 0;
    while (!stoped) {
        qDebug() << QString("thread running : %1").arg(i);
        msleep(1000);
        i++;
    }

    stoped = false;
}


void CustomThread::stop()
{
    stoped = true;
}
